package com.etms.mapper;

import com.etms.pojo.Goods_category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HuopinMapper {
    List<Goods_category> findAll();

    Goods_category findById(Integer id);

    boolean delById(Integer id);

    void update(Goods_category goods_category);

    void addOne(Goods_category goods_category);

    List<Goods_category> findDangerSum();

    List<Goods_category> findDangerTime(@Param("now") long now);

    Integer updateSum(@Param("presum") long presum,@Param("nowsum") long nowsum,@Param("id") Integer gid);
}
